home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8352 / 8352.xpi / chrome / greasefire.jar / content / test / test_prefs.js < prev    next >
Text File  |  2009-01-06  |  573b  |  23 lines

  1. /*
  2.  * Copyright (C) 2008 by Steve Krulewitz <skrulx@gmail.com>
  3.  * Licensed under GPLv2 or later, see file LICENSE in the xpi for details.
  4.  */
  5. const Cc = Components.classes;
  6. const Ci = Components.interfaces;
  7. const Cr = Components.results;
  8.  
  9. function runTest() {
  10.  
  11.   const ww = Cc["@mozilla.org/embedcomp/window-watcher;1"]
  12.                .getService(Ci.nsIWindowWatcher);
  13.  
  14.   ww.openWindow(null,
  15.                 "chrome://greasefire/content/prefs.xul",
  16.                 "_blank",
  17.                 "chrome,all,dialog,modal,centerscreen",
  18.                 null);
  19.  
  20.   return true;
  21. }
  22.  
  23.